# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=qstardict
pkgver=2.0.2
pkgrel=0
pkgdesc="Free dictionary program written using Qt."
url="https://qstardict.ylsoftware.com"
# loongarch64: to unblock the builder as this aport ftbfs with gcc14
arch="all !loongarch64"
license="GPL-2.0-only"
makedepends="qt5-qttools-dev"
subpackages="$pkgname-doc"
source="https://gitlab.com/a-rodin/qstardict/-/archive/$pkgver/qstardict-$pkgver.tar.gz"

build() {
	qmake ENABLED_PLUGINS="stardict swac web"
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
}

sha512sums="
70f658c88f1e5708dbe594342c7414269fc7f9bdc2f5fab12bf64f94d28de8fe6eb9f851a4a5c331bb3c8b90fa798ba5643e0a10c294878a5c50a54009b2f980  qstardict-2.0.2.tar.gz
"
